package cn.appsys.service.impl;

import cn.appsys.mapper.appCategory.AppCategoryMapper;
import cn.appsys.pojo.AppCategory;
import cn.appsys.service.AppCategoryService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.List;
@Transactional
@Service
public class AppCategoryServiceimpl implements AppCategoryService {
    @Resource
    AppCategoryMapper appCategoryMapper;
    @Override
    public List<AppCategory> getCategoryLevel1() {
        return appCategoryMapper.getCategoryLevel1();
    }

    @Override
    public List<AppCategory> getCategoryLevel2(int parentId) {
        return appCategoryMapper.getCategoryLevel2(parentId);
    }

    @Override
    public List<AppCategory> getCategoryLevel3(int parentId) {
        return appCategoryMapper.getCategoryLevel3(parentId);
    }
}
